package com.supplychain.scm.core.feign.annotation;

import com.supplychain.scm.core.feign.constant.SupplyFeignConstants;

import java.lang.annotation.*;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName EnableDbySupplyFeign
 * @Description 开启OpenFegin拦截器注解
 * @createTime 12:17:00 2022/08/18
 */
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@EnableGrayFeign
public @interface EnableDbySupplyFeign {

	/**
	 * 业务编码
	 * @return
	 */
	String bizCode();

	/**
	 * 是否开启灰度版本
	 * @return
	 */
	boolean enableGray() default false;

	/**
	 * 包扫描路径
	 * @return
	 */
	String[] scanePath() default {SupplyFeignConstants.DEFAULT_SCANE_PATH};
}
